package com.lorenzogao.paymodular;

import android.content.Context;
import android.content.Intent;

import com.lorenzogao.componentlib.service.IPayService;

/**
 * Created by GanLanPing
 * data:2019/3/2
 * time:15:25
 * 邮箱:2508719070@qq.com
 * Description:
 */

public class PayService implements IPayService {

    @Override
    public void launch(Context context, int userId) {
        Intent intent = new Intent(context, MainActivity.class);
        intent.putExtra("userId", userId);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(intent);
    }
}
